{include file="public/head" /}
  
  <body>
    <div class="x-body">
        <form class="layui-form" method="post" action="{:url('edit')}">
            <input type="hidden" name="id"  value="{$info.id}" />
            <div class="layui-form-item">
                <label  for="lockname" class="layui-form-label">
                    <span class="x-red">*</span>名称:
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="lockname" id="lockname" required
                           autocomplete="off" class="layui-input" style="width:300px;" value="{$info.lockname}">
                </div>
            </div>
            <div class="layui-form-item">
                <label  for="devicekey" class="layui-form-label">
                    <span class="x-red">*</span>宇帆设备key:
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="devicekey" id="devicekey" required
                           autocomplete="off" class="layui-input" style="width:300px;" value="{$info.devicekey}">
                </div>
            </div>
            <div class="layui-form-item">
                <label  for="imei" class="layui-form-label">
                    <span class="x-red">*</span>模组id:
                </label>
                <div class="layui-input-inline">
                    <input type="text" name="imei" id="imei"
                           autocomplete="off" class="layui-input" style="width:300px;" value="{$info.imei}">
                </div>
            </div>

            <div class="layui-form-item">
                <label  for="qrcode_id" class="layui-form-label">
                    <span class="x-red">*</span>二维码id:
                </label>
                <div class="layui-input-inline">
                    <input type="number" name="qrcode_id" id="qrcode_id"
                           autocomplete="off" class="layui-input" style="width:300px;" value="{$info.qrcode_id}" maxlength="11">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="lock_type" class="layui-form-label">
                    <span class="x-red">*</span>开门类型:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="lock_type" id="lock_type">
                    <option value="1"  {if $info.lock_type == 1} selected="selected" {/if}>宇帆设备</option>

                    <option value="2" {if $info.lock_type == 2} selected="selected" {/if}>模组</option>

                    </select>
                </div>
            </div>
          <div class="layui-form-item">
              <label for="L_repass" class="layui-form-label">
              </label>
              <button  class="layui-btn" lay-filter="add" lay-submit="">
                  修改
              </button>
          </div>
      </form>
    </div>

    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则
    });
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>